# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ocs
pkgver=0.2
pkgrel=6
groups=('blackarch' 'blackarch-scanner' 'blackarch-cracker')
pkgdesc='Compact mass scanner for Cisco routers with default telnet/enable passwords.'
arch=('x86_64' 'aarch64')
url='http://packetstormsecurity.com/files/119462/OCS-Cisco-Scanner-0.2.html'
license=('GPL')
makedepends=('gcc')
source=("https://dl.packetstormsecurity.net/UNIX/scanners/OCS-$pkgver.c")
sha512sums=('b42f234cae8de7cf20e24e30eb4401016dad4dc9a4c2756c8ff7e588b8e6dfafcd71d879a3dde6fdc1a9d048d52c1febd46503a7c41a00cd7d337e194ff46d74')

build() {
  gcc -o OCS "OCS-$pkgver.c" -lpthread
}

package() {
  install -Dm 755 OCS "$pkgdir/usr/bin/$pkgname-cisco"
}

